package com.springcloud.zuul.form;

import com.springcloud.zuul.common.validator.group.AddGroup;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Description:登录表单
 * @author zhlu
 * @date 2019/12/27 4:35 下午
 */
@Data
public class SysLoginForm {
    /**登陆方式 1.普通登陆   2.手机号登陆  3.微信登陆 */
    @NotNull(message="登陆方式不能为空", groups = {AddGroup.class})
    @Min(value =1,message = "登陆方式状态不合法",groups = {AddGroup.class})
    @Max(value =3,message = "登陆方式状态不合法",groups = {AddGroup.class})
    private Integer method;
    private String loginName;
    private String password;
    private String phone;
    private String captcha;
    private String uuid;


}
